.status-tracking-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 400px;
  height: 100vh;
  background: white;
  border-left: 1px solid #e8e8e8;
  box-shadow: -2px 0 8px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid #e8e8e8;
  background: #fafafa;
}

.panel-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #262626;
}

.close-button {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: #8c8c8c;
  padding: 4px;
  border-radius: 4px;
  transition: color 0.2s, background-color 0.2s;
}

.close-button:hover {
  color: #262626;
  background-color: #f0f0f0;
}

/* 状态统计 */
.status-stats {
  display: flex;
  padding: 16px 20px;
  border-bottom: 1px solid #e8e8e8;
  background: #f9f9f9;
  gap: 8px;
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  min-width: 60px;
}

.stat-label {
  font-size: 12px;
  color: #8c8c8c;
  margin-bottom: 4px;
}

.stat-value {
  font-size: 16px;
  font-weight: 600;
  color: #262626;
}

/* 过滤器按钮 */
.filter-buttons {
  display: flex;
  padding: 12px 20px;
  border-bottom: 1px solid #e8e8e8;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-buttons button {
  padding: 4px 12px;
  border: 1px solid #d9d9d9;
  background: white;
  border-radius: 4px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
  color: #595959;
}

.filter-buttons button:hover {
  border-color: #40a9ff;
  color: #40a9ff;
}

.filter-buttons button.active {
  background: #1890ff;
  border-color: #1890ff;
  color: white;
}

/* 节点列表 */
.nodes-list {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
}

.node-item {
  border: 1px solid #e8e8e8;
  border-radius: 6px;
  margin-bottom: 12px;
  background: white;
  cursor: pointer;
  transition: all 0.2s;
}

.node-item:hover {
  border-color: #40a9ff;
  box-shadow: 0 2px 8px rgba(64, 169, 255, 0.1);
}

.node-item.selected {
  border-color: #1890ff;
  box-shadow: 0 2px 8px rgba(24, 144, 255, 0.15);
}

.node-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
}

.node-info {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.node-type-icon {
  font-size: 16px;
}

.node-label {
  font-size: 14px;
  font-weight: 500;
  color: #262626;
  flex: 1;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

.node-status {
  display: flex;
  align-items: center;
  gap: 6px;
}

.status-icon {
  font-size: 14px;
}

.status-text {
  font-size: 12px;
  font-weight: 500;
  text-transform: capitalize;
}

/* 节点详细信息 */
.node-details {
  padding: 0 16px 12px 16px;
  border-top: 1px solid #f0f0f0;
  background: #fafafa;
}

.detail-item {
  margin-bottom: 8px;
  font-size: 12px;
}

.detail-item:last-child {
  margin-bottom: 0;
}

.detail-label {
  display: inline-block;
  width: 80px;
  color: #8c8c8c;
  font-weight: 500;
}

.detail-value {
  color: #262626;
}

.detail-result,
.detail-data {
  margin-top: 4px;
  padding: 8px;
  background: white;
  border: 1px solid #e8e8e8;
  border-radius: 4px;
  max-height: 150px;
  overflow-y: auto;
}

.detail-result pre,
.detail-data pre {
  margin: 0;
  font-size: 11px;
  line-height: 1.4;
  color: #262626;
  white-space: pre-wrap;
  word-wrap: break-word;
}

/* 空状态 */
.empty-state {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 200px;
  color: #8c8c8c;
  font-size: 14px;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .status-tracking-panel {
    width: 100%;
  }
}

/* 与聊天框的调整 */
.status-tracking-panel.adjust-for-chatbox {
  right: 320px;
}

/* 滚动条样式 */
.nodes-list::-webkit-scrollbar {
  width: 6px;
}

.nodes-list::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.nodes-list::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
}

.nodes-list::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
} 